#ifndef NETCARDUTIL_H
#define NETCARDUTIL_H

#include <QThread>

class NetCardUtil : public QThread
{
    Q_OBJECT
public:
    explicit NetCardUtil(int cardNum, QObject *parent = 0);
    ~NetCardUtil();
    void run() override;
signals:
    void sig_onCheckConnect(int cardNum, bool connect, int disconnectCount, int connectCount, uint errCode);
public slots:

private:
    bool m_running = false;
    int m_card_num = 0;
    bool connectOk = false;
    int m_disconnect_count = 0;
    int m_connect_count = 0;
};

#endif // NETCARDUTIL_H
